package com.github.ecbp.store.service.dto;

import com.github.ecbp.common.req.BaseIdDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * @Author Created by Alex·He on 2020/4/29 11:57
 * @Version 1.0
 * @Description 商品属性传递参数
 */
@Data
@ApiModel
public class ProductAttributeDTO extends BaseIdDTO {

    /**
     * 商品属性，采用JSON数组格式
     */
    @ApiModelProperty(value = "商品属性，采用JSON数组格式")
    @NotEmpty
    private String attribute;

    /**
     * 商品分类ID
     */
    @ApiModelProperty(value = "商品分类ID")
    private Long productCategoryId;
}
